<template>
    <a-layout id="components-layout-demo-top-side-2">
      <a-layout-header class="header">
        <div class="logo" />
        <a-menu
          theme="dark"
          mode="horizontal"
          :default-selected-keys="['2']"
          :style="{ lineHeight: '64px' }"
        >
          <a-menu-item key="1">
            菜单 1
          </a-menu-item>
          <a-menu-item key="2">
            菜单 2
          </a-menu-item>
          <a-menu-item key="3">
            菜单 3
          </a-menu-item>
        </a-menu>
      </a-layout-header>
      <a-layout>
        <a-layout-sider width="200" style="background: #fff">
          <a-menu
            mode="inline"
            :default-selected-keys="['1']"
            :default-open-keys="['sub1']"
            :style="{ height: '100%', borderRight: 0 }"
          >
            <a-sub-menu key="sub1">
              <span slot="title"><a-icon type="user" />分类 1</span>
              <a-menu-item key="1">
                项目1
              </a-menu-item>
              <a-menu-item key="2">
                项目2
              </a-menu-item>
              <a-menu-item key="3">
                项目3
              </a-menu-item>
              <a-menu-item key="4">
                项目4
              </a-menu-item>
            </a-sub-menu>
            <a-sub-menu key="sub2">
              <span slot="title"><a-icon type="laptop" />分类 2</span>
              <a-menu-item key="5">
                项目5
              </a-menu-item>
              <a-menu-item key="6">
                项目6
              </a-menu-item>
              <a-menu-item key="7">
                项目7
              </a-menu-item>
              <a-menu-item key="8">
                项目8
              </a-menu-item>
            </a-sub-menu>
            <a-sub-menu key="sub3">
              <span slot="title"><a-icon type="notification" />分类 3</span>
              <a-menu-item key="9">
                项目9
              </a-menu-item>
              <a-menu-item key="10">
                项目10
              </a-menu-item>
              <a-menu-item key="11">
                项目11
              </a-menu-item>
              <a-menu-item key="12">
                项目12
              </a-menu-item>
            </a-sub-menu>
          </a-menu>
        </a-layout-sider>
        <a-layout style="padding: 0 24px 24px">
          <a-breadcrumb style="margin: 16px 0">
            <a-breadcrumb-item>主页</a-breadcrumb-item>
            <a-breadcrumb-item>列表</a-breadcrumb-item>
            <a-breadcrumb-item>应用</a-breadcrumb-item>
          </a-breadcrumb>
          <a-layout-content
            :style="{ background: '#fff', padding: '24px', margin: 0, minHeight: '280px' }"
          >
            内容
          </a-layout-content>
        </a-layout>
      </a-layout>
    </a-layout>
  </template>
  <script>
  export default {
    data() {
      return {
        collapsed: false,
      };
    },
  };
  </script>
  
  <style>
  #components-layout-demo-top-side-2 .logo {
    width: 120px;
    height: 31px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px 28px 16px 0;
    float: left;
  }
  </style>